package com.efuture.chapterone

/* @Description: Kotlin 字符串模版
 * @Auther: zhaoshanshan
 * @Date: 2022/03/04/2:57 下午
 */
fun main() {
    val address = "武汉东湖";
    val time = 6;
    val desc = "今天天气很晴朗，我去${address}玩了${time}小时";//字符串模版
    println(desc);
    val isLogin = true;
    val resp = "${ if (isLogin) "恭喜你登录成功," else "登录失败了"}"//可以写 if else 表达式
    println(resp)
}
    